.PHONY:all
all: write read
write:write.cc contacts.pb.cc
	g++ -o $@ $^ -std=c++11 -lprotobuf
read:read.cc contacts.pb.cc
	g++ -o $@ $^ -std=c++11 -lprotobuf

.PHONY:clean proto
clean:
	rm write read
proto:
	protoc --cpp_out=. contacts.proto